package com.basics.framework.security.service;/*
package com.basics.framework.security.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashSet;
import java.util.Set;

@Component
public class SysPermissionService {
    @Autowired
    private AppRoleService roleService;
    @Autowired
    private AppMenuService menuService;

    public SysPermissionService() {
    }

    public Set<String> getRolePermission(AppUser user) {
        Set<String> roles = new HashSet();
        roles.addAll(this.roleService.selectRolePermissionByUserId(user.getUserId()));
        return roles;
    }

    public Set<String> getMenuPermission(AppUser user) {
        Set<String> perms = new HashSet();
        perms.addAll(this.menuService.selectMenuPermsByUserId(user.getUserId(), 1));
        return perms;
    }
}*/
